﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class SumUtils
    {
        public int Sum(int zhengshu1, int zhsnegshu2)
        {
            return zhengshu1 + zhsnegshu2;

        }

        public double Sum(double xiaoshu1, double xiaoshu2)
        {
            return xiaoshu1 + xiaoshu2;
        }
        public string Sum(string zifu1, string zifu2)
        {
            return zifu1 + zifu2;
        }
        public int Sum(int a)
        {
            int sum = 0;
            for (int i = 1; i <= a; i++)
            {
                sum += i;
            }
            return sum;
        }

    }
}
